Progress Bar Control is used to display the progress of a task.
Drag and drop ProgressBar Control from toolbox on the window Form. By default maximum value of ProgressBar is set 100 and minimum value is set 0 and this value can be changed.
Code:
Public Class Form14
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'Progressbar will show progress bteween max and min value
While ProgressBar1.Value < 100
ProgressBar1.Value += 5 'progressbar value will increment 5 in each step
End While
End Sub
End Class
Run the project
When you click StartTime button then ProgressBar will start.
Leave Comment